home *** CD-ROM | disk | FTP | other *** search
/ 5 Star Games: DOS Edition 2 / 5 Star Games - DOS Edition (1995)(Ready to Run).iso / dbc / db_conio.h < prev    next >
Text File  |  1992-02-28  |  1KB  |  28 lines

  1. /****************************************************************************/
  2. /*                 HEADER FILE FOR DATABOSS MODULE: DB_CONIO                */
  3. /****************************************************************************/
  4.  
  5. /*******************************  INTERFACE  ********************************/
  6.  
  7. #ifdef __TURBOC__
  8.     #define cwrite(s) cputs(s)
  9.  
  10.     void getscreeninfo(byte *mode, byte *cols, byte *rows, byte *attr);
  11.     byte gettextattr(void);
  12. #else
  13.     #define cwrite(s)            _outtext(s)
  14.     #define textattr(a)        _settextcolor(a & 0x0F); \
  15.                                                 _setbkcolor((0xF0L & a) >> 4)
  16.     #define gettextattr()    (_gettextcolor() | (byte) _getbkcolor())
  17.     #define gotoxy(x,y)        _settextposition(y,x)
  18.     #define wherex()            ((int) _gettextposition().col)
  19.     #define wherey()            ((int) _gettextposition().row)
  20.     #define clrscr()            _clearscreen(_GWINDOW)
  21.     #define textmode(m)        _setvideomode(m)
  22.  
  23.     void clreol(void);
  24.     void getscreeninfo(byte *mode, byte *cols, byte *rows, byte *attr);
  25. #endif
  26.  
  27. /***************************** END OF DB_CONIO.H ****************************/
  28.